<?php
/**
 * Created by PhpStorm.
 * User: 王世鹏
 * Date: 2018/3/6
 * Time: 15:38
 */

namespace app\index\controller;


use think\Controller;

class Shop extends Controller
{
    public function index()
    {
        return $this->fetch();
    }

    public function showUser()
    {
        $db=db("user");
        $data = $db->select();
        $this->assign("data",$data);
        $this->assign("username",input("cookie.username"));
        return $this->fetch();

    }

    public function showGoods()
    {
        $db=db("goods");
        $data = $db->select();
        $this->assign("data",$data);
        return $this->fetch();
    }


}